package com.ys.entity.purchase;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCG_PurchaseByOrder", catalog="Id")
public class TcgPurchaseByOrder extends BaseEntity<TcgPurchaseByOrder> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="PlanBid", nameJava="planBid", typeDataBase="varchar")
	private String planBid;
	@YsField(nameDataBase="PurchasePlanGoodsId", nameJava="purchasePlanGoodsId", typeDataBase="bigint")
	private Long purchasePlanGoodsId;
	@YsField(nameDataBase="Vgsbm", nameJava="vgsbm", typeDataBase="varchar")
	private String vgsbm;
	@YsField(nameDataBase="PurchaseAddressId", nameJava="purchaseAddressId", typeDataBase="bigint")
	private Long purchaseAddressId;
	@YsField(nameDataBase="SpBm", nameJava="spBm", typeDataBase="varchar")
	private String spBm;
	@YsField(nameDataBase="OrderStatus", nameJava="orderStatus", typeDataBase="tinyint")
	private Integer orderStatus;
	@YsField(nameDataBase="AliAccount", nameJava="aliAccount", typeDataBase="varchar")
	private String aliAccount;
	@YsField(nameDataBase="AliOrderNumber", nameJava="aliOrderNumber", typeDataBase="varchar")
	private String aliOrderNumber;
	@YsField(nameDataBase="AliMessage", nameJava="aliMessage", typeDataBase="varchar")
	private String aliMessage;
	@YsField(nameDataBase="AliPromotionId", nameJava="aliPromotionId", typeDataBase="varchar")
	private String aliPromotionId;
	@YsField(nameDataBase="AliState", nameJava="aliState", typeDataBase="varchar")
	private String aliState;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="AliCreateTime", nameJava="aliCreateTime", typeDataBase="datetime")
	private Date aliCreateTime;
	@YsField(nameDataBase="AliErrorMessages", nameJava="aliErrorMessages", typeDataBase="text")
	private String aliErrorMessages;
	@YsField(nameDataBase="AliResult", nameJava="aliResult", typeDataBase="varchar")
	private String aliResult;
	@YsField(nameDataBase="AliLogisticsCompanyCode", nameJava="aliLogisticsCompanyCode", typeDataBase="varchar")
	private String aliLogisticsCompanyCode;
	@YsField(nameDataBase="AliLogisticsState", nameJava="aliLogisticsState", typeDataBase="varchar")
	private String aliLogisticsState;
	@YsField(nameDataBase="AliLogisticsCompanyName", nameJava="aliLogisticsCompanyName", typeDataBase="varchar")
	private String aliLogisticsCompanyName;
	@YsField(nameDataBase="AliLogisticsPlace", nameJava="aliLogisticsPlace", typeDataBase="varchar")
	private String aliLogisticsPlace;
	@YsField(nameDataBase="AliLogisticsCode", nameJava="aliLogisticsCode", typeDataBase="varchar")
	private String aliLogisticsCode;
	@YsField(nameDataBase="AliLogisticsBillNo", nameJava="aliLogisticsBillNo", typeDataBase="varchar")
	private String aliLogisticsBillNo;
	@YsField(nameDataBase="PurchaseOrderAmount", nameJava="purchaseOrderAmount", typeDataBase="decimal")
	private BigDecimal purchaseOrderAmount;
	@YsField(nameDataBase="OrderAmount", nameJava="orderAmount", typeDataBase="decimal")
	private BigDecimal orderAmount;
	@YsField(nameDataBase="FreightCharge", nameJava="freightCharge", typeDataBase="decimal")
	private BigDecimal freightCharge;
	@YsField(nameDataBase="ServiceCharge", nameJava="serviceCharge", typeDataBase="decimal")
	private BigDecimal serviceCharge;
	@YsField(nameDataBase="CouponFee", nameJava="couponFee", typeDataBase="decimal")
	private BigDecimal couponFee;
	@YsField(nameDataBase="OperateStatus", nameJava="operateStatus", typeDataBase="tinyint")
	private Integer operateStatus;
	@YsField(nameDataBase="OrderAmountExpect", nameJava="orderAmountExpect", typeDataBase="decimal")
	private BigDecimal orderAmountExpect;
	@YsField(nameDataBase="IsPay", nameJava="isPay", typeDataBase="tinyint")
	private Integer isPay;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="AuditingTime", nameJava="auditingTime", typeDataBase="datetime")
	private Date auditingTime;
	@YsField(nameDataBase="AuditingUserId", nameJava="auditingUserId", typeDataBase="varchar")
	private String auditingUserId;
	@YsField(nameDataBase="OrderAmountDiscuss", nameJava="orderAmountDiscuss", typeDataBase="decimal")
	private BigDecimal orderAmountDiscuss;
	@YsField(nameDataBase="ApiAddrSend", nameJava="apiAddrSend", typeDataBase="varchar")
	private String apiAddrSend;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="PlanToOrderNo", nameJava="planToOrderNo", typeDataBase="int")
	private Integer planToOrderNo;
	@YsField(nameDataBase="PlanToOrderNum", nameJava="planToOrderNum", typeDataBase="int")
	private Integer planToOrderNum;
	@YsField(nameDataBase="CreateMonth", nameJava="createMonth", typeDataBase="varchar")
	private String createMonth;
	@YsField(nameDataBase="MonthNo", nameJava="monthNo", typeDataBase="int")
	private Integer monthNo;
	@YsField(nameDataBase="WorkLog", nameJava="workLog", typeDataBase="varchar")
	private String workLog;
	@YsField(nameDataBase="NegotiatedPrice", nameJava="negotiatedPrice", typeDataBase="decimal")
	private BigDecimal negotiatedPrice;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcgPurchaseByOrder setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TcgPurchaseByOrder setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public String getPlanBid() {
		return planBid;
	}
	public TcgPurchaseByOrder setPlanBid(String planBid) {
		this.planBid = planBid;
		return this;
	}
	public Long getPurchasePlanGoodsId() {
		return purchasePlanGoodsId;
	}
	public TcgPurchaseByOrder setPurchasePlanGoodsId(Long purchasePlanGoodsId) {
		this.purchasePlanGoodsId = purchasePlanGoodsId;
		return this;
	}
	public String getVgsbm() {
		return vgsbm;
	}
	public TcgPurchaseByOrder setVgsbm(String vgsbm) {
		this.vgsbm = vgsbm;
		return this;
	}
	public Long getPurchaseAddressId() {
		return purchaseAddressId;
	}
	public TcgPurchaseByOrder setPurchaseAddressId(Long purchaseAddressId) {
		this.purchaseAddressId = purchaseAddressId;
		return this;
	}
	public String getSpBm() {
		return spBm;
	}
	public TcgPurchaseByOrder setSpBm(String spBm) {
		this.spBm = spBm;
		return this;
	}
	public Integer getOrderStatus() {
		return orderStatus;
	}
	public TcgPurchaseByOrder setOrderStatus(Integer orderStatus) {
		this.orderStatus = orderStatus;
		return this;
	}
	public String getAliAccount() {
		return aliAccount;
	}
	public TcgPurchaseByOrder setAliAccount(String aliAccount) {
		this.aliAccount = aliAccount;
		return this;
	}
	public String getAliOrderNumber() {
		return aliOrderNumber;
	}
	public TcgPurchaseByOrder setAliOrderNumber(String aliOrderNumber) {
		this.aliOrderNumber = aliOrderNumber;
		return this;
	}
	public String getAliMessage() {
		return aliMessage;
	}
	public TcgPurchaseByOrder setAliMessage(String aliMessage) {
		this.aliMessage = aliMessage;
		return this;
	}
	public String getAliPromotionId() {
		return aliPromotionId;
	}
	public TcgPurchaseByOrder setAliPromotionId(String aliPromotionId) {
		this.aliPromotionId = aliPromotionId;
		return this;
	}
	public String getAliState() {
		return aliState;
	}
	public TcgPurchaseByOrder setAliState(String aliState) {
		this.aliState = aliState;
		return this;
	}
	public Date getAliCreateTime() {
		return aliCreateTime;
	}
	public TcgPurchaseByOrder setAliCreateTime(Date aliCreateTime) {
		this.aliCreateTime = aliCreateTime;
		return this;
	}
	public String getAliErrorMessages() {
		return aliErrorMessages;
	}
	public TcgPurchaseByOrder setAliErrorMessages(String aliErrorMessages) {
		this.aliErrorMessages = aliErrorMessages;
		return this;
	}
	public String getAliResult() {
		return aliResult;
	}
	public TcgPurchaseByOrder setAliResult(String aliResult) {
		this.aliResult = aliResult;
		return this;
	}
	public String getAliLogisticsCompanyCode() {
		return aliLogisticsCompanyCode;
	}
	public TcgPurchaseByOrder setAliLogisticsCompanyCode(String aliLogisticsCompanyCode) {
		this.aliLogisticsCompanyCode = aliLogisticsCompanyCode;
		return this;
	}
	public String getAliLogisticsState() {
		return aliLogisticsState;
	}
	public TcgPurchaseByOrder setAliLogisticsState(String aliLogisticsState) {
		this.aliLogisticsState = aliLogisticsState;
		return this;
	}
	public String getAliLogisticsCompanyName() {
		return aliLogisticsCompanyName;
	}
	public TcgPurchaseByOrder setAliLogisticsCompanyName(String aliLogisticsCompanyName) {
		this.aliLogisticsCompanyName = aliLogisticsCompanyName;
		return this;
	}
	public String getAliLogisticsPlace() {
		return aliLogisticsPlace;
	}
	public TcgPurchaseByOrder setAliLogisticsPlace(String aliLogisticsPlace) {
		this.aliLogisticsPlace = aliLogisticsPlace;
		return this;
	}
	public String getAliLogisticsCode() {
		return aliLogisticsCode;
	}
	public TcgPurchaseByOrder setAliLogisticsCode(String aliLogisticsCode) {
		this.aliLogisticsCode = aliLogisticsCode;
		return this;
	}
	public String getAliLogisticsBillNo() {
		return aliLogisticsBillNo;
	}
	public TcgPurchaseByOrder setAliLogisticsBillNo(String aliLogisticsBillNo) {
		this.aliLogisticsBillNo = aliLogisticsBillNo;
		return this;
	}
	public BigDecimal getPurchaseOrderAmount() {
		return purchaseOrderAmount;
	}
	public TcgPurchaseByOrder setPurchaseOrderAmount(BigDecimal purchaseOrderAmount) {
		this.purchaseOrderAmount = purchaseOrderAmount;
		return this;
	}
	public BigDecimal getOrderAmount() {
		return orderAmount;
	}
	public TcgPurchaseByOrder setOrderAmount(BigDecimal orderAmount) {
		this.orderAmount = orderAmount;
		return this;
	}
	public BigDecimal getFreightCharge() {
		return freightCharge;
	}
	public TcgPurchaseByOrder setFreightCharge(BigDecimal freightCharge) {
		this.freightCharge = freightCharge;
		return this;
	}
	public BigDecimal getServiceCharge() {
		return serviceCharge;
	}
	public TcgPurchaseByOrder setServiceCharge(BigDecimal serviceCharge) {
		this.serviceCharge = serviceCharge;
		return this;
	}
	public BigDecimal getCouponFee() {
		return couponFee;
	}
	public TcgPurchaseByOrder setCouponFee(BigDecimal couponFee) {
		this.couponFee = couponFee;
		return this;
	}
	public Integer getOperateStatus() {
		return operateStatus;
	}
	public TcgPurchaseByOrder setOperateStatus(Integer operateStatus) {
		this.operateStatus = operateStatus;
		return this;
	}
	public BigDecimal getOrderAmountExpect() {
		return orderAmountExpect;
	}
	public TcgPurchaseByOrder setOrderAmountExpect(BigDecimal orderAmountExpect) {
		this.orderAmountExpect = orderAmountExpect;
		return this;
	}
	public Integer getIsPay() {
		return isPay;
	}
	public TcgPurchaseByOrder setIsPay(Integer isPay) {
		this.isPay = isPay;
		return this;
	}
	public Date getAuditingTime() {
		return auditingTime;
	}
	public TcgPurchaseByOrder setAuditingTime(Date auditingTime) {
		this.auditingTime = auditingTime;
		return this;
	}
	public String getAuditingUserId() {
		return auditingUserId;
	}
	public TcgPurchaseByOrder setAuditingUserId(String auditingUserId) {
		this.auditingUserId = auditingUserId;
		return this;
	}
	public BigDecimal getOrderAmountDiscuss() {
		return orderAmountDiscuss;
	}
	public TcgPurchaseByOrder setOrderAmountDiscuss(BigDecimal orderAmountDiscuss) {
		this.orderAmountDiscuss = orderAmountDiscuss;
		return this;
	}
	public String getApiAddrSend() {
		return apiAddrSend;
	}
	public TcgPurchaseByOrder setApiAddrSend(String apiAddrSend) {
		this.apiAddrSend = apiAddrSend;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TcgPurchaseByOrder setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getPlanToOrderNo() {
		return planToOrderNo;
	}
	public TcgPurchaseByOrder setPlanToOrderNo(Integer planToOrderNo) {
		this.planToOrderNo = planToOrderNo;
		return this;
	}
	public Integer getPlanToOrderNum() {
		return planToOrderNum;
	}
	public TcgPurchaseByOrder setPlanToOrderNum(Integer planToOrderNum) {
		this.planToOrderNum = planToOrderNum;
		return this;
	}
	public String getCreateMonth() {
		return createMonth;
	}
	public TcgPurchaseByOrder setCreateMonth(String createMonth) {
		this.createMonth = createMonth;
		return this;
	}
	public Integer getMonthNo() {
		return monthNo;
	}
	public TcgPurchaseByOrder setMonthNo(Integer monthNo) {
		this.monthNo = monthNo;
		return this;
	}
	public String getWorkLog() {
		return workLog;
	}
	public TcgPurchaseByOrder setWorkLog(String workLog) {
		this.workLog = workLog;
		return this;
	}
	public BigDecimal getNegotiatedPrice() {
		return negotiatedPrice;
	}
	public TcgPurchaseByOrder setNegotiatedPrice(BigDecimal negotiatedPrice) {
		this.negotiatedPrice = negotiatedPrice;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcgPurchaseByOrder setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcgPurchaseByOrder setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcgPurchaseByOrder setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcgPurchaseByOrder tcgPurchaseByOrder(
		String bid,
		String planBid,
		Long purchasePlanGoodsId,
		String vgsbm,
		Long purchaseAddressId,
		String spBm,
		Integer orderStatus,
		String aliAccount,
		String aliOrderNumber,
		String aliMessage,
		String aliPromotionId,
		String aliState,
		Date aliCreateTime,
		String aliErrorMessages,
		String aliResult,
		String aliLogisticsCompanyCode,
		String aliLogisticsState,
		String aliLogisticsCompanyName,
		String aliLogisticsPlace,
		String aliLogisticsCode,
		String aliLogisticsBillNo,
		BigDecimal purchaseOrderAmount,
		BigDecimal orderAmount,
		BigDecimal freightCharge,
		BigDecimal serviceCharge,
		BigDecimal couponFee,
		Integer operateStatus,
		BigDecimal orderAmountExpect,
		Integer isPay,
		Date auditingTime,
		String auditingUserId,
		BigDecimal orderAmountDiscuss,
		String apiAddrSend,
		String remark,
		Integer planToOrderNo,
		Integer planToOrderNum,
		String createMonth,
		Integer monthNo,
		String workLog,
		BigDecimal negotiatedPrice,
		Integer status
			) {
		TcgPurchaseByOrder entity = new TcgPurchaseByOrder();
		entity.setBid(bid);
		entity.setPlanBid(planBid);
		entity.setPurchasePlanGoodsId(purchasePlanGoodsId);
		entity.setVgsbm(vgsbm);
		entity.setPurchaseAddressId(purchaseAddressId);
		entity.setSpBm(spBm);
		entity.setOrderStatus(orderStatus);
		entity.setAliAccount(aliAccount);
		entity.setAliOrderNumber(aliOrderNumber);
		entity.setAliMessage(aliMessage);
		entity.setAliPromotionId(aliPromotionId);
		entity.setAliState(aliState);
		entity.setAliCreateTime(aliCreateTime);
		entity.setAliErrorMessages(aliErrorMessages);
		entity.setAliResult(aliResult);
		entity.setAliLogisticsCompanyCode(aliLogisticsCompanyCode);
		entity.setAliLogisticsState(aliLogisticsState);
		entity.setAliLogisticsCompanyName(aliLogisticsCompanyName);
		entity.setAliLogisticsPlace(aliLogisticsPlace);
		entity.setAliLogisticsCode(aliLogisticsCode);
		entity.setAliLogisticsBillNo(aliLogisticsBillNo);
		entity.setPurchaseOrderAmount(purchaseOrderAmount);
		entity.setOrderAmount(orderAmount);
		entity.setFreightCharge(freightCharge);
		entity.setServiceCharge(serviceCharge);
		entity.setCouponFee(couponFee);
		entity.setOperateStatus(operateStatus);
		entity.setOrderAmountExpect(orderAmountExpect);
		entity.setIsPay(isPay);
		entity.setAuditingTime(auditingTime);
		entity.setAuditingUserId(auditingUserId);
		entity.setOrderAmountDiscuss(orderAmountDiscuss);
		entity.setApiAddrSend(apiAddrSend);
		entity.setRemark(remark);
		entity.setPlanToOrderNo(planToOrderNo);
		entity.setPlanToOrderNum(planToOrderNum);
		entity.setCreateMonth(createMonth);
		entity.setMonthNo(monthNo);
		entity.setWorkLog(workLog);
		entity.setNegotiatedPrice(negotiatedPrice);
		entity.setStatus(status);
		return entity;
	}
}